﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Parents1.aspx.vb" Inherits="CommunityWebsiteProject.Parents" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <p style="font-weight: bold">
        Find a Tutor!</p>
    <p style="font-weight: bold">
        Subject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        Post Code<br />
        <asp:DropDownList ID="DropDownList1" runat="server" Height="17px" Width="151px">
            <asp:ListItem>English</asp:ListItem>
            <asp:ListItem>Maths</asp:ListItem>
            <asp:ListItem>French</asp:ListItem>
            <asp:ListItem>German</asp:ListItem>
            <asp:ListItem>History</asp:ListItem>
            <asp:ListItem>Business Studies</asp:ListItem>
            <asp:ListItem>Geography</asp:ListItem>
            <asp:ListItem>Business Studies</asp:ListItem>
            <asp:ListItem>Biology</asp:ListItem>
            <asp:ListItem>Chemistry</asp:ListItem>
            <asp:ListItem>Physics</asp:ListItem>
            <asp:ListItem>Computer Science</asp:ListItem>
            <asp:ListItem>ICT</asp:ListItem>
            <asp:ListItem>Spanish</asp:ListItem>
            <asp:ListItem>Music</asp:ListItem>
            <asp:ListItem></asp:ListItem>
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox2" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btn_SearchTutor" runat="server" Text="Search" />
&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btn_Clear" runat="server" Text="Clear" />
    </p>
    <p>
    </p>
        &nbsp;<asp:ListView ID="lv_Tutors" runat="server" DataSourceID="SqlDataSource1">
        <AlternatingItemTemplate>
            <span style="background-color: #FFF8DC;">
           
            <image src = '<%# Eval("Picture") %>'  align="left" width = "150px" height = "150px" />
            <br />
            <br />
            <%# Eval("Title") %> <%# Eval("FirstName") %>  <%# Eval("Surname") %>
            <br />
            <br />
            Location:
            <asp:Label ID="LocationLabel" runat="server" Text='<%# Eval("Location") %>' />
            <br />
            <br />
            Subject:
            <asp:Label ID="SubjectLabel" runat="server" Text='<%# Eval("Subject") %>' />
            <br />
            <br />
            Hourly Rate: &pound;
            <asp:Label ID="HourlyRate" runat="server" Text='<%# Eval("HourlyRate") %>' />
            <br />
            <br />
    
<br /></span>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <span style="background-color: #008A8C;color: #FFFFFF;">Title:
            <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>' />
            <br />
            FirstName:
            <asp:TextBox ID="FirstNameTextBox" runat="server" 
                Text='<%# Bind("FirstName") %>' />
            <br />
            Surname:
            <asp:TextBox ID="SurnameTextBox" runat="server" Text='<%# Bind("Surname") %>' />
            <br />
            Picture:
            <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
            <br />
            Location:
            <asp:TextBox ID="LocationTextBox" runat="server" 
                Text='<%# Bind("Location") %>' />
            <br />
            Subject:
            <asp:TextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>' />
            <br />
            HourlyRate:
            <asp:TextBox ID="HourlyRateTextBox" runat="server" 
                Text='<%# Bind("HourlyRate") %>' />
            <br />
            Qualifications:
            <asp:TextBox ID="QualificationsTextBox" runat="server" 
                Text='<%# Bind("Qualifications") %>' />
            <br />
            Experience:
            <asp:TextBox ID="ExperienceTextBox" runat="server" 
                Text='<%# Bind("Experience") %>' />
            <br />
            Availability:
            <asp:TextBox ID="AvailabilityTextBox" runat="server" 
                Text='<%# Bind("Availability") %>' />
            <br />
            EmailAddress:
            <asp:TextBox ID="EmailAddressTextBox" runat="server" 
                Text='<%# Bind("EmailAddress") %>' />
            <br />
            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                Text="Update" />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Cancel" />
            <br /><br /></span>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <span>No data was returned.</span>
        </EmptyDataTemplate>
        <InsertItemTemplate>
            <span style="">Title:
            <asp:TextBox ID="TitleTextBox0" runat="server" Text='<%# Bind("Title") %>' />
            <br />FirstName:
            <asp:TextBox ID="FirstNameTextBox0" runat="server" 
                Text='<%# Bind("FirstName") %>' />
            <br />Surname:
            <asp:TextBox ID="SurnameTextBox0" runat="server" 
                Text='<%# Bind("Surname") %>' />
            <br />Picture:
            <asp:TextBox ID="PictureTextBox0" runat="server" 
                Text='<%# Bind("Picture") %>' />
            <br />Location:
            <asp:TextBox ID="LocationTextBox0" runat="server" 
                Text='<%# Bind("Location") %>' />
            <br />Subject:
            <asp:TextBox ID="SubjectTextBox0" runat="server" 
                Text='<%# Bind("Subject") %>' />
            <br />HourlyRate:
            <asp:TextBox ID="HourlyRateTextBox0" runat="server" 
                Text='<%# Bind("HourlyRate") %>' />
            <br />Qualifications:
            <asp:TextBox ID="QualificationsTextBox0" runat="server" 
                Text='<%# Bind("Qualifications") %>' />
            <br />Experience:
            <asp:TextBox ID="ExperienceTextBox0" runat="server" 
                Text='<%# Bind("Experience") %>' />
            <br />Availability:
            <asp:TextBox ID="AvailabilityTextBox0" runat="server" 
                Text='<%# Bind("Availability") %>' />
            <br />EmailAddress:
            <asp:TextBox ID="EmailAddressTextBox0" runat="server" 
                Text='<%# Bind("EmailAddress") %>' />
            <br />
            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                Text="Insert" />
            <asp:Button ID="CancelButton0" runat="server" CommandName="Cancel" 
                Text="Clear" />
            <br /><br /></span>
        </InsertItemTemplate>
        <ItemTemplate>
            <span style="background-color: #DCDCDC;color: #000000;">
           
            <image src = '<%# Eval("Picture") %>'  align="left" width = "150px" height = "150px" />
            <br />
            <br />
              
            <%# Eval("Title") %> <%# Eval("FirstName") %>  <%# Eval("Surname") %>
            <br />       
            <br />
            Location:
            <asp:Label ID="LocationLabel0" runat="server" Text='<%# Eval("Location") %>' />
            <br />
            <br />
            Subject:
            <asp:Label ID="SubjectLabel0" runat="server" Text='<%# Eval("Subject") %>' />
            <br />
            <br />
            Hourly Rate: &pound;
            <asp:Label ID="HourlyRate0" runat="server" Text='<%# Eval("HourlyRate") %>' />
            <br />
            <br />
               
           
<br /></span>
        </ItemTemplate>
        <LayoutTemplate>
            <div ID="itemPlaceholderContainer" runat="server" 
                style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                <span runat="server" id="itemPlaceholder" />
            </div>
            <div style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                <asp:DataPager ID="DataPager1" runat="server">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                            ShowLastPageButton="True" />
                    </Fields>
                </asp:DataPager>
            </div>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <span style="background-color: #008A8C;font-weight: bold;color: #FFFFFF;">Title:
            <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' />
            <br />
            FirstName:
            <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' />
            <br />
            Surname:
            <asp:Label ID="SurnameLabel" runat="server" Text='<%# Eval("Surname") %>' />
            <br />
            Picture:
            <asp:Label ID="PictureLabel" runat="server" Text='<%# Eval("Picture") %>' />
            <br />
            Location:
            <asp:Label ID="LocationLabel1" runat="server" Text='<%# Eval("Location") %>' />
            <br />
            Subject:
            <asp:Label ID="SubjectLabel1" runat="server" Text='<%# Eval("Subject") %>' />
            <br />
            HourlyRate:
            <asp:Label ID="HourlyRateLabel" runat="server" 
                Text='<%# Eval("HourlyRate") %>' />
            <br />
            Qualifications:
            <asp:Label ID="QualificationsLabel" runat="server" 
                Text='<%# Eval("Qualifications") %>' />
            <br />
            Experience:
            <asp:Label ID="ExperienceLabel" runat="server" 
                Text='<%# Eval("Experience") %>' />
            <br />
            Availability:
            <asp:Label ID="AvailabilityLabel" runat="server" 
                Text='<%# Eval("Availability") %>' />
            <br />
            EmailAddress:
            <asp:Label ID="EmailAddressLabel" runat="server" 
                Text='<%# Eval("EmailAddress") %>' />
            <br />
<br /></span>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TutorsConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:TutorsConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Title], [FirstName], [Surname], [Picture], [Location], [Subject], [HourlyRate], [Qualifications], [Experience], [Availability], [EmailAddress] FROM [tbl_Tutors]">
    </asp:SqlDataSource>
&nbsp;&nbsp;&nbsp; 

</asp:Content>
